﻿using UnityEngine;
using System.Collections;

public class ButtonLabelActivate : MonoBehaviour
{

    // Use this for initialization
    public GameObject target;
    public bool state = true;

    void OnPress(bool isDown)
    {
        if (isDown)
        {
            if (target != null) NGUITools.SetActive(target, state);
        }
        else
        {
            if (target != null) NGUITools.SetActive(target, !state);
        }
    }
    
}
